package com.jiemengshi.server.mapper;

import com.jiemengshi.server.model.Announcement;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
@Transactional
public interface AnnouncementMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Announcement record);

    int insertSelective(Announcement record);

    Announcement selectByPrimaryKey(Integer id);

    List<Announcement> listAnnouncement();
    
    int updateByPrimaryKeySelective(Announcement record);

    int updateByPrimaryKey(Announcement record);
}